package com.ruoyi.qualityManagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qualityManagement.mapper.QualityInspectionMapper;
import com.ruoyi.qualityManagement.domain.QualityInspection;
import com.ruoyi.qualityManagement.service.IQualityInspectionService;

/**
 * 质检项管理Service业务层处理
 * 
 * @author admin
 * @date 2024-07-05
 */
@Service
public class QualityInspectionServiceImpl implements IQualityInspectionService 
{
    @Autowired
    private QualityInspectionMapper qualityInspectionMapper;

    /**
     * 查询质检项管理
     * 
     * @param inspectionId 质检项管理主键
     * @return 质检项管理
     */
    @Override
    public QualityInspection selectQualityInspectionByInspectionId(Long inspectionId)
    {
        return qualityInspectionMapper.selectQualityInspectionByInspectionId(inspectionId);
    }

    /**
     * 查询质检项管理列表
     * 
     * @param qualityInspection 质检项管理
     * @return 质检项管理
     */
    @Override
    public List<QualityInspection> selectQualityInspectionList(QualityInspection qualityInspection)
    {
        return qualityInspectionMapper.selectQualityInspectionList(qualityInspection);
    }

    /**
     * 新增质检项管理
     * 
     * @param qualityInspection 质检项管理
     * @return 结果
     */
    @Override
    public int insertQualityInspection(QualityInspection qualityInspection)
    {
        return qualityInspectionMapper.insertQualityInspection(qualityInspection);
    }

    /**
     * 修改质检项管理
     * 
     * @param qualityInspection 质检项管理
     * @return 结果
     */
    @Override
    public int updateQualityInspection(QualityInspection qualityInspection)
    {
        return qualityInspectionMapper.updateQualityInspection(qualityInspection);
    }

    /**
     * 批量删除质检项管理
     * 
     * @param inspectionIds 需要删除的质检项管理主键
     * @return 结果
     */
    @Override
    public int deleteQualityInspectionByInspectionIds(Long[] inspectionIds)
    {
        return qualityInspectionMapper.deleteQualityInspectionByInspectionIds(inspectionIds);
    }

    /**
     * 删除质检项管理信息
     * 
     * @param inspectionId 质检项管理主键
     * @return 结果
     */
    @Override
    public int deleteQualityInspectionByInspectionId(Long inspectionId)
    {
        return qualityInspectionMapper.deleteQualityInspectionByInspectionId(inspectionId);
    }
}
